package normal.队列;

import java.util.LinkedList;
import java.util.Queue;

/**
 * @author ZhuYi
 * @create 2024/12/19 15:01
 */
public class QueueTest {
    public static void main(String[] args) {
        Queue<Integer> queue=new LinkedList<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);

        System.out.println(queue.peek());
        queue.poll();//出队
        System.out.println(queue.size());
        System.out.println(queue.isEmpty());
    }
}
